package com.itchen.hospital.service;

import com.github.pagehelper.PageInfo;
import com.itchen.hospital.pojo.Announcement;
import com.itchen.hospital.pojo.Params;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AnnouncementService {

    /**
     * 查询所有
     * @return
     */
    List<Announcement> getAll();

    /**
     * 条件查询
     * @param params
     * @return
     */
    PageInfo<Announcement> search(Params params);


    /**
     * 添加
     * @param announcement
     */
    void add(Announcement announcement);

    /**
     * 修改
     * @param announcement
     */
    void update(Announcement announcement);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Announcement findById(String id);

    /**
     * 删除
     * @param
     */
    void delete(String id);

    /**
     * 批量删除
     * @param announcements
     */
    void batchDelete(List<Announcement> announcements);
}
